/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MyWidget;

/**
 *
 * @author KF-NRS
 */
public class Position
{
    private int left;
    private int top;

    public int getLeft()
    {
        return left;
    }

    public void setLeft(int left)
    {
        this.left = left;
    }

    public int getTop()
    {
        return top;
    }

    public void setTop(int top)
    {
        this.top = top;
    }

    private static Position singleton = null;

    private Position()
    {
    }

    public static Position getInstance()
    {
        if(singleton==null)
        {
            synchronized(Position.class)
            {
                if(singleton==null)
                {
                    singleton = new Position();
                }
            }
        }
        return singleton;
    }
}
